/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

import beans.DBMS;
import beans.Order;
import beans.OrderDetail;

/**
 *
 * @author appi
 */
public class OrderDetailDao {

    public static boolean addOrderDetail(OrderDetail od) {
        boolean flag = false;
        try {
            String sql = "insert into order_detail(oid,iid,iqty) values('" + od.getOid() + "','" + od.getIid() + "','" + od.getIqty() + "')";
            DBMS d = new DBMS();

            if (d.guid(sql) == 1) {
                flag = true;
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        return flag;



    }
}
